package com.example.demo.Model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.sql.Date;


public class CommentsModel {
    @JsonProperty(value = "id")
    private int id;
    @JsonProperty(value = "time")
    private String time;
    @JsonProperty(value = "message")
    private String message;
    @JsonProperty(value = "username")
    private String username;

    public CommentsModel(int id, String time, String message, String username) {
        this.id = id;
        this.time = time;
        this.message = message;
        this.username = username;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
